//添加多个参数注意使用[]
layui.use(['form'], function () {

    var form = layui.form;

    //监听提交
    form.on('submit(commit)', function (data) {

        let formData = JSON.stringify(data.field);
        let result = commonAjax('/team/add',formData,'post');
        if (result.count === 1) {
            layerMsgAddSuccess();
        } else {
            layerMsgAddFail();
        }

        return false;
    });
});